package io.renren.modules.lucky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.app.form.out.AppSysNoticeForm;
import io.renren.modules.lucky.entity.AppSysNoticeEntity;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * app端-系统-消息信息表
 *
 * @author chenshun
 * @email chenchen@ashacker.com
 * @date 2019-08-31 20:58:28
 */
public interface AppSysNoticeService extends IService<AppSysNoticeEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取公告与消息列表
     *
     * @param userId
     * @param page
     * @param limit
     * @return
     */
    List<AppSysNoticeForm> queryNoticeList(String userId, String page, String limit) throws InvocationTargetException, IllegalAccessException;

    /**
     * 更改消息公告
     *
     * @param noticeId
     * @param user_token
     * @return
     */
    boolean updateNotice(String noticeId, String user_token, String userId);

}

